﻿using System.Web;
using WI.CandidateManager.Common.Data.Entities;

namespace WI.CandidateManager.DataAccess.Contexts.SessionContext
{
    /// <summary>
    /// Facade for managing HttpContext.Current.Session
    /// </summary>
    public class CMSession
    {
        private static string userKeyName = "userSessionKeyName";

        public UserBase User
        {
            get
            {
                return HttpContext.Current.Session[userKeyName] as UserBase;
            }
            set
            {
                HttpContext.Current.Session[userKeyName] = value;
            }
        }
    }
}
